package com.zl.csMall.indexShow.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @description: 首页商品
 * @author: ChenNing
 * @date 2025-10-20 15:23
 */
@Data
@ApiModel(description = "首页商品 实体")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ShowCommodity  implements Serializable {

    private static final long serialVersionUID = 1L;

    private long id;

    @ApiModelProperty(value = "排序", required = true)
    @NotNull(message = "不能为空！")
    private Integer sort;

    @ApiModelProperty(value = "关联商品ID")
    private Long commodityId;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "内容")
    private String content;

    @ApiModelProperty(value = "标签")
    private String tag;

    @ApiModelProperty(value = "展示图片 附件ID", required = true)
    @NotNull(message = "不能为空！")
    private Long showAttachmentId;

    @ApiModelProperty(value = "展示图片 下载地址集合")
    @TableField(exist = false)
    private List<String> showPicList;

    @ApiModelProperty(value = "是否轮播图（1：是、2：否）", required = true)
    @NotNull(message = "不能为空！")
    private Integer isCar;

    @ApiModelProperty(value = "是否商品首页顶部背景轮播图（1：是、2：否）")
    private Integer isCommodityIndexBackground;

    private Date createDate;

    private Date updateDate;

}
